﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Automation;
using LEET.CommonInterfaces.Models;

namespace Tedds_Tool.RulesBase
{
    public interface IRule
    {
        String Name { get; }
        IList<IConsequence> Trigger(AutomationElement ae);
        IEnumerable<IInstruction> PreconditionInstructions { get; }
        IEnumerable<IInstruction> ImplicationInstructions { get; }
        IList<IConsequence> Consequences { get; }
        String Serialize();
        bool ContainsPrecondition(String p);
        bool ContainsImplication(String a);
        bool ContainsConsequence(String c);
    }
}
